fix(TStepper): 修复受控交互与主题插值并对齐公开示例 - #1064
Merged
Merged
Conversation
Contributor
Web DemoAPK 下载 |
Open
…r-pr1064 # Conflicts: # .cnb/.reusable-stages.yml # .github/workflows/test-build.yml # tdesign-component/example/test/demo_page_test_utils.dart # tdesign-component/example/test/fonts/README.md # tdesign-component/tool/check_component_coverage.dart # tdesign-component/tool/run_component_regression.dart # tdesign-component/tool/run_visual_regression.dart
…r-pr1064 # Conflicts: # tdesign-component/example/test/fonts/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

🤔 这个 PR 的性质是?
🔗 相关 Issue
Related to #1027
💡 需求背景和解决方案
修复编辑草稿与按钮边界判断不一致的问题:从最小值或最大值开始输入合法草稿后,加减按钮立即按草稿更新;父组件仍为唯一提交值源,拒绝请求时回退,单次操作最多通知一次。修复 nullable 组件主题在动画中把未设置尺寸当作 0、颜色继承失真的问题,插值两端在实际组件上下文中解析。
按 Figma 设计稿 调整三个分组、五个代码入口:边界仅 0 / 999,禁用值 0,统一容器底色、16px 内边距及对齐。五份生成片段包含实际运行 Widget、必要 State 和导入,可独立编译交互。
现有七个构造参数、枚举、默认尺寸和严格受控模式保持不变;无 breaking change,无迁移要求。
手机验收发现开启代码模式会重置已操作示例,现已保持
CodeWrapper子树结构稳定;开启代码模式、打开代码面板、查看 API 文档和切换主题均保留各实例状态。Spec:行为契约 · 验收记录
验证:本地 Flutter 3.32.0 / 3.47.0 各 39 项组件、7 项 Demo、18 项工具回归通过,严格 analyze 零告警;生产行覆盖率 330/335 = 98.51%。五份代码片段在最小宿主独立编译并完成十个实例交互。iPhone 16 / iOS 18.2 模拟器实际点击基础、上下界、三种样式和三种尺寸,并验证代码模式、API 页和主题切换后的状态保持。Linux Flutter 3.32.0 的 Demo / 组件明暗四张 Golden 精确复验通过,未放宽容差。新增测试已登记 CI 入口。
原组件 Golden 存在字体绘制差异;同一 Linux 环境下修复前后实际图像逐字节一致,核对后校正基线。远端 CI 与 Android/iOS 真机 IME 尚未作为本次通过证据。
📝 更新日志
fix(TStepper): 修复编辑草稿后加减按钮边界状态未及时更新的问题。
fix(TStepper): 修复未设置主题字段时的尺寸与颜色动画插值。
docs(TStepper): 对齐步进器公开示例并提供可独立运行的示例代码。
本条 PR 不需要纳入 Changelog
☑️ 请求合并前的自查清单
type(<scope>?): 修改描述。示例:
fix(TBottomTabBar): 修复 iconText 模式底部溢出